package com.supercube.sport.yoga.vo;

import com.supercube.sport.yoga.domain.CardGroupByMemberDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class MemberVO {
    private String id;

    private String name;

    private String sex;
    @NotNull(message = "手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp ="^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;

    private List<CardGroupByMemberDTO> cardGroupByMemberDTOList;

    private String nickname;

    private String birthday;

    private String idCard;

    private String height;

    private String weight;

    private String homeAddress;

    private String workAddress;

    private String source;

    private String salesId;

    private String salesName;

    private String coachId;

    private String coachName;

    private String bz;

    private String babybirthday;

    private String createUser;

    private String createTime;

    private String lastModifyUser;

    private String lastModifyTime;

    private String status;

    private String isMarriage;

    private String isFertility;

    private String medicalHistoryDescription;

    private String integralBalance;

    private String memberStatus;

    public MemberVO(String id, String name, String sex, @NotNull(message = "手机号不能为空") @NotBlank(message = "手机号不能为空") @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误") String phone, String nickname, String birthday, String idCard, String height, String weight, String homeAddress, String workAddress, String source, String salesId, String salesName, String coachId, String coachName, String bz, String babybirthday, String createUser, String createTime, String lastModifyUser, String lastModifyTime, String status, String isMarriage, String isFertility, String medicalHistoryDescription,String integralBalance,String memberStatus) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.nickname = nickname;
        this.birthday = birthday;
        this.idCard = idCard;
        this.height = height;
        this.weight = weight;
        this.homeAddress = homeAddress;
        this.workAddress = workAddress;
        this.source = source;
        this.salesId = salesId;
        this.salesName = salesName;
        this.coachId = coachId;
        this.coachName = coachName;
        this.bz = bz;
        this.babybirthday = babybirthday;
        this.createUser = createUser;
        this.createTime = createTime;
        this.lastModifyUser = lastModifyUser;
        this.lastModifyTime = lastModifyTime;
        this.status = status;
        this.isMarriage = isMarriage;
        this.isFertility = isFertility;
        this.medicalHistoryDescription = medicalHistoryDescription;
        this.integralBalance = integralBalance;
        this.memberStatus = memberStatus;
    }

    public String getIntegralBalance() {
        return integralBalance;
    }

    public void setIntegralBalance(String integralBalance) {
        this.integralBalance = integralBalance;
    }

    public String getSalesName() {
        return salesName;
    }

    public void setSalesName(String salesName) {
        this.salesName = salesName;
    }

    public String getCoachName() {
        return coachName;
    }

    public void setCoachName(String coachName) {
        this.coachName = coachName;
    }

    public MemberVO() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height == null ? null : height.trim();
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight == null ? null : weight.trim();
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress == null ? null : homeAddress.trim();
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress == null ? null : workAddress.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getSalesId() {
        return salesId;
    }

    public void setSalesId(String salesId) {
        this.salesId = salesId == null ? null : salesId.trim();
    }

    public String getCoachId() {
        return coachId;
    }

    public void setCoachId(String coachId) {
        this.coachId = coachId == null ? null : coachId.trim();
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz == null ? null : bz.trim();
    }

    public String getBabybirthday() {
        return babybirthday;
    }

    public void setBabybirthday(String babybirthday) {
        this.babybirthday = babybirthday == null ? null : babybirthday.trim();
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getLastModifyUser() {
        return lastModifyUser;
    }

    public void setLastModifyUser(String lastModifyUser) {
        this.lastModifyUser = lastModifyUser == null ? null : lastModifyUser.trim();
    }

    public String getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(String lastModifyTime) {
        this.lastModifyTime = lastModifyTime == null ? null : lastModifyTime.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getIsMarriage() {
        return isMarriage;
    }

    public void setIsMarriage(String isMarriage) {
        this.isMarriage = isMarriage == null ? null : isMarriage.trim();
    }

    public String getIsFertility() {
        return isFertility;
    }

    public void setIsFertility(String isFertility) {
        this.isFertility = isFertility == null ? null : isFertility.trim();
    }

    public String getMedicalHistoryDescription() {
        return medicalHistoryDescription;
    }

    public void setMedicalHistoryDescription(String medicalHistoryDescription) {
        this.medicalHistoryDescription = medicalHistoryDescription == null ? null : medicalHistoryDescription.trim();
    }
}
